import { defineAmisPlugin,getBaseFormItem, getInputTpl } from '../../base/util';
import Button from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component: Button,
        options: getBaseFormItem({
            type: 'button', order: -6999, name: '按钮', icon: 'FileSearchOutlined',xtype:'Button',
            valueLabel: true,
            tpls: [
                getInputTpl('child', { label: '按钮内容' }),
                getInputTpl('size', { label: '设置按钮大小' }),
                getInputTpl('useType', { label: '设置按钮类型' }),
            ]
        })
    };
});
